<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="js/bootstrap-3.3.5-dist/css/bootstrap.css" />
	</head>

	<body>
		<div id="content">

		</div>
          
          <div>
          	
          </div>
          
          
		<script type="text/javascript">
			var idProto = window.location.search;
			var id = idProto.substring(idProto.indexOf("=") + 1);

			$.ajax({
				type: "post",
				url: "MakeBodySer?id=" + id,
				async: true,
				success: function(data) {
					var jsonObj = jQuery.parseJSON(data);
					html = "<div><ul class='list-group'>"
					$.each(jsonObj, function(i, obj) {
						if(obj.file != null) {
							html += "<li id='"+obj.id+"'>"+"<a href='DowSer?id="+obj.id+"'>附件下载</a></li>"
							
						}
						html += "<li id='" + obj.id + "' type = 'none' class='list-group-item'>" + obj.title + "</li>";
						html += "<li id='" + obj.id + "' type = 'none' class = 'list-group-item'>" + obj.body + "</li>"

					});
					html += "</ul></div>";
					$("#content").append(html);
				}

			});
		</script>
	</body>

</html>